<?php session_start();
require_once('../../includefiles.php');
include_once("../../model/admindetails.php");

// Create Object
$userObj  = new Model_AdminDetails();

$companyname = strtolower($_GET['companyname']);  
$userid = strtolower($_GET['id']);  

// this function check companyname Exit ot not
$result = $userObj->getUserCompanyName(trim($companyname),$userid);

if(count($result) > 0)
{	
	if(strtolower($result['companyname']) == strtolower($companyname))
	{
		echo 'false';
	}
}
else
{
	echo "true";	
}

?>


